﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DesignPatternSample.AdapterPattern
{
    public class DuckAdapter
        : IDuck
    {
        private readonly ITurkey _turkey;
        public DuckAdapter(ITurkey turkey)
        {
            _turkey = turkey;
        }
        public void Quack()
        {
            _turkey.Gobble();
        }
    }
}
